package com.haima.ziliao.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.haima.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.haima.common.core.domain.BaseEntity;

/**
 * 读物资料对象 p_duwu
 * 
 * @author hima
 * @date 2024-11-14
 */
public class PDuwu extends BaseEntity implements Serializable
{
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 所属分类 */
    @Excel(name = "所属分类")
    private Long tid;

    /** 封面 */
    @Excel(name = "封面")
    private String pic;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 预览图 */
    @Excel(name = "预览图")
    private String yulantu;

    /** 描述 */
    @Excel(name = "描述")
    private String miaoshu;

    /** 下载地址 */
    @Excel(name = "下载地址")
    private String path;

    /** 页数 */
    @Excel(name = "页数")
    private Integer pages;

    /** 是否免费 */
    @Excel(name = "是否免费")
    private String free;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal jiage;

    /** 现价 */
    @Excel(name = "现价")
    private BigDecimal xianjia;

    /** 会员价 */
    @Excel(name = "会员价")
    private BigDecimal huiyuanjia;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** MD5 */
    @Excel(name = "MD5")
    private String md5;

    /** 会员免费 */
    @Excel(name = "会员免费")
    private String needvip;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private String fileSize;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    private String tuijian;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTid(Long tid) 
    {
        this.tid = tid;
    }

    public Long getTid() 
    {
        return tid;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setYulantu(String yulantu) 
    {
        this.yulantu = yulantu;
    }

    public String getYulantu() 
    {
        return yulantu;
    }
    public void setMiaoshu(String miaoshu) 
    {
        this.miaoshu = miaoshu;
    }

    public String getMiaoshu() 
    {
        return miaoshu;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setPages(Integer pages)
    {
        this.pages = pages;
    }

    public Integer getPages()
    {
        return pages;
    }
    public void setFree(String free) 
    {
        this.free = free;
    }

    public String getFree() 
    {
        return free;
    }
    public void setJiage(BigDecimal jiage) 
    {
        this.jiage = jiage;
    }

    public BigDecimal getJiage() 
    {
        return jiage;
    }
    public void setXianjia(BigDecimal xianjia) 
    {
        this.xianjia = xianjia;
    }

    public BigDecimal getXianjia() 
    {
        return xianjia;
    }
    public void setHuiyuanjia(BigDecimal huiyuanjia) 
    {
        this.huiyuanjia = huiyuanjia;
    }

    public BigDecimal getHuiyuanjia() 
    {
        return huiyuanjia;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }
    public void setMd5(String md5) 
    {
        this.md5 = md5;
    }

    public String getMd5() 
    {
        return md5;
    }
    public void setNeedvip(String needvip) 
    {
        this.needvip = needvip;
    }

    public String getNeedvip() 
    {
        return needvip;
    }
    public void setFileSize(String fileSize) 
    {
        this.fileSize = fileSize;
    }

    public String getFileSize() 
    {
        return fileSize;
    }
    public void setTuijian(String tuijian) 
    {
        this.tuijian = tuijian;
    }

    public String getTuijian() 
    {
        return tuijian;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tid", getTid())
            .append("pic", getPic())
            .append("title", getTitle())
            .append("yulantu", getYulantu())
            .append("miaoshu", getMiaoshu())
            .append("path", getPath())
            .append("pages", getPages())
            .append("free", getFree())
            .append("jiage", getJiage())
            .append("xianjia", getXianjia())
            .append("huiyuanjia", getHuiyuanjia())
            .append("addTime", getAddTime())
            .append("md5", getMd5())
            .append("needvip", getNeedvip())
            .append("fileSize", getFileSize())
            .append("tuijian", getTuijian())
            .toString();
    }
}
